package cn.kawa.org.domain;

import cn.kawa.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data//getters setters
@AllArgsConstructor//有参构造
@NoArgsConstructor//无参构造
public class Department extends BaseDomain {
    //部门id,继承

    //部门编号
    private String  sn;
    //部门名称
    private String name;
    //部门路径
    private String  dirPath;
    //部门状态
    private Integer state;
    //部门经理ID
    private Long  manager_id;

    //emoloyee对象，领导(新加)
    private Employee manager;//

    //上级部门ID
    private Long parent_id;
    private Department parent;//

    //用于装当前部门的子集部门
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Department> children = new ArrayList<>();//


    public Department(Long o, String dept24, String 部门24, String s, int i, long l, Object o1, long l1, Object o2, Object o3) {
    }
}
